<? Phpr_View::beginBlock("head") ?>
	<script type="text/javascript" src="modules/shop/resources/javascript/manufacturer.js"></script>
<? Phpr_View::endBlock() ?>

<? Phpr_View::beginBlock("view") ?>
	<ul class="breadcrumbs">
		<li><a href="<?= url('/shop/products') ?>">Products</a></li>
		<li><a href="<?= url('/shop/manufacturers') ?>">Product Manufacturers</a></li>
		<li><?= $this->app_page_title ?></li>
	</ul>
	
	<?= flash() ?>

	<? if (!isset($fatalError)): ?>
		<div class="form600">
			<?= Phpr_Form::openTag() ?>
				<? $this->formRender() ?>

				<?= backend_ajax_button('Save', 'edit_onSave', array(),  "prepareFunction: function(){phprTriggerSave();}") ?>
				<?= backend_ajax_button('Cancel', 'edit_onCancel') ?>

				<?= backend_ajax_button('Delete', 'edit_onDelete', array('class'=>"right"), "confirm: 'Do you really want to delete this manufacturer?'") ?>
				<div class="clear"></div>
			</form>
		</div>
	<? else: ?>
		<p><a href="<?= url('/shop/manufacturers') ?>">Return to the manufacturer list</a></p>
	<? endif ?>
<? Phpr_View::endBlock() ?>